﻿*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: 'PT Sans', Helvetica, Arial, sans-serif;
}
body{
    min-height: 100vh;

}
h1{
    color: #e96039;
}
.login-form{
    /*对于形状进行一些基本处理*/
    width: 330px;

    background: rgba(255,214,185,0.6);
    height: 400px;
    padding: 80px 40px;
    border-radius: 30px ;
    position: absolute;
    left: 50%;
    top: 50%;
    transform:  translate(-50%,-50%);
}
.login-form h1{
    text-align: center;
    margin-bottom: 60px;
}
.txtb{
    border-bottom:2px solid #be7964;
    position:relative;
    margin: 30px 0;
}
.txtb input{
    font-size:15px;
    color: #e96039;
    border:none;
    width: 100%;
    outline: none;
    background: none;
    padding: 0 5px;
    height: 40px;
}
/*.txtb span::before 对应span之后的的元素这里表示username和password*/
.txtb span::before{
    content: attr(aria-placeholder);
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    z-index: -1;
    transition: .5s;
}
/*.txtb span::before 对应span之后的的元素这里表示username和password下面的横线不是input下面的横线*/
.txtb span::after{
    content: "";
    position: absolute;
    width: 0%;
    height:2px;
    background: linear-gradient(120deg,#3498db,#8e44ad);
    transition: .5s;
}
/*对span之前的元素设置focus效果用jq代码动态变价达到字体上浮的效果*/
.focus +span::before{
    top:-5px;
}
/*对于span下面的横线设置focus效果一样用js代码动态添加达到颜色动态填充效果*/
.focus +span::after{
    width: 100%;
}
.logbtn{
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px ;
    background: linear-gradient(120deg,#3498db,#8e44ad);
    background-size: 200%;
    color:#fff;
    /*设置鼠标移动到按钮上的样式*/
    cursor:pointer;
    transition: .5s;
}

.logbtn:hover{
    background-position: right;
}
.bottom-text{
    margin-top:60px;
    text-align: center;
    font-size: 13px;
}


/*修改layermsg弹窗样式*/
div[type=dialog]{
    border-radius: 10px ;
    background: rgba(255, 255, 255, 0.5);
}